package edu.drexel.cs575.taskManager.gui.controller.notifications;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import edu.drexel.cs575.taskManager.gui.Helper;
import edu.drexel.cs575.taskManager.gui.model.users.LoginCredentials;

@Controller
public class NotificationController {
	
	@RequestMapping("notifications")
	public ModelAndView notificationIndex(HttpServletRequest request){
		
		if(Helper.isLoggedIn(request)){
			return new ModelAndView("notificationIndex", "command", "");
		}
		else{
			return new ModelAndView("index", "command", new LoginCredentials());
		}
		
	}
	
	public ModelAndView listNotifications(){
		return null;
	}
	
	public ModelAndView notificationPreferences(){
		return null;
		
	}

}
